package cn.edu.wit.beans;


/**
 * 1.实体类中的属性个数和类型要与数据表保持一致（一一对应）
 * 2.提供实体类一个带有参数属性参数的构造器
 * 	 右键--source--Generate Constructor using Fields..--OK
 * 3.提供实体类的无参构造器
 *   右键--source--Generate Constructors From SuperClass..--OK
 * 4.提供所有属性的get和set方法
 * 	 右键--source--Generate Getters　and Setters-- select all--OK
 * 5.重写toString方法（当我们打印一个学生的时候，就可以打印出学生的详细信息）
 *  右键--source--Generate toString -- OK
 * 6.重写hashcode/equals方法（用于自定义比较两个学生对象的规则）
 * 7.实现序列化接口Serializable
 */
public class Student{
	
	private String stuNum;
	private String stuName;
	private String stuSex;
	private int stuAge;
	private String stuTel;
	private String stuQQ;
	private String stuAddr;
	private String stuRemark;
	private Clazz cla;
	
	
	
	@Override
	public String toString() {
		return "Student [stuNum=" + stuNum + ", stuName=" + stuName
				+ ", stuSex=" + stuSex + ", stuAge=" + stuAge + ", stuTel="
				+ stuTel + ", stuQQ=" + stuQQ + ", stuAddr=" + stuAddr
				+ ", stuRemark=" + stuRemark + "]";
	}

	public Student(String stuNum, String stuName, String stuSex, int stuAge,
			String stuTel, String stuQQ, String stuAddr, String stuRemark) {
		super();
		this.stuNum = stuNum;
		this.stuName = stuName;
		this.stuSex = stuSex;
		this.stuAge = stuAge;
		this.stuTel = stuTel;
		this.stuQQ = stuQQ;
		this.stuAddr = stuAddr;
		this.stuRemark = stuRemark;
	}

	
	
	
	public Student(String stuNum, String stuName, String stuSex, int stuAge,
			String stuTel, String stuQQ, String stuAddr, String stuRemark,
			Clazz cla) {
		super();
		this.stuNum = stuNum;
		this.stuName = stuName;
		this.stuSex = stuSex;
		this.stuAge = stuAge;
		this.stuTel = stuTel;
		this.stuQQ = stuQQ;
		this.stuAddr = stuAddr;
		this.stuRemark = stuRemark;
		this.cla = cla;
	}

	public Clazz getCla() {
		return cla;
	}

	public void setCla(Clazz cla) {
		this.cla = cla;
	}

	public Student() {
		super();
	}

	public String getStuNum() {
		return stuNum;
	}

	public void setStuNum(String stuNum) {
		this.stuNum = stuNum;
	}

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public String getStuSex() {
		return stuSex;
	}

	public void setStuSex(String stuSex) {
		this.stuSex = stuSex;
	}

	public int getStuAge() {
		return stuAge;
	}

	public void setStuAge(int stuAge) {
		this.stuAge = stuAge;
	}

	public String getStuTel() {
		return stuTel;
	}

	public void setStuTel(String stuTel) {
		this.stuTel = stuTel;
	}

	public String getStuQQ() {
		return stuQQ;
	}

	public void setStuQQ(String stuQQ) {
		this.stuQQ = stuQQ;
	}

	public String getStuAddr() {
		return stuAddr;
	}

	public void setStuAddr(String stuAddr) {
		this.stuAddr = stuAddr;
	}

	public String getStuRemark() {
		return stuRemark;
	}

	public void setStuRemark(String stuRemark) {
		this.stuRemark = stuRemark;
	}
	
	
	


}
